package com.qst.entity;

public class ExamQuestion {
    private Integer examId;
    private Integer testPersonnelId;
    private Integer questionId;
    private int[] answer;
    private boolean right;
    private int score;
    /**
     * 用于存储选择题的答案，以字符串形式存储
     */
    private String ToArrAnswer;

    private Question question;

    public ExamQuestion() {
    }

    public String getToArrAnswer() {
        return ToArrAnswer;
    }

    public void setToArrAnswer(String toArrAnswer) {
        ToArrAnswer = toArrAnswer;
    }

    public ExamQuestion(Integer examId, Integer testPersonnelId, Integer questionId, int[] answer, boolean right, int score, Question question) {
        this.examId = examId;
        this.testPersonnelId = testPersonnelId;
        this.questionId = questionId;
        this.answer = answer;
        this.right = right;
        this.score = score;
        this.question = question;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public Integer getTestPersonnelId() {
        return testPersonnelId;
    }

    public void setTestPersonnelId(Integer testPersonnelId) {
        this.testPersonnelId = testPersonnelId;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public int[] getAnswer() {
        return answer;
    }

    public void setAnswer(int[] answer) {
        this.answer = answer;
    }

    public boolean isRight() {
        return right;
    }

    public void setRight(boolean right) {
        this.right = right;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Question getQuestion() {
        return question;
    }

    public void setQuestion(Question question) {
        this.question = question;
    }
}
